package com.bd.scm.dao.mapper.schedule;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.bd.scm.domain.dto.schedule.ScheduleGroupDto;
import com.bd.scm.domain.dto.schedule.ScheduleGroupOrderDto;
import com.bd.scm.domain.dto.schedule.ScheduleGroupScheduleDto;
import com.bd.scm.domain.models.schedule.ScheduleGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yufc
 */
public interface ScheduleGroupMapper extends BaseMapper<ScheduleGroup> {


    /**
     * 删除班组
     *
     * @param groupIds
     * @return
     */
    int deleteGroup(@Param("groupIds") String groupIds);

    /**
     * 获取班组列表
     * @param queryWrapper
     * @return
     */
    List<ScheduleGroupDto> getGroup(@Param(Constants.WRAPPER) QueryWrapper<ScheduleGroupDto> queryWrapper);

    /**
     * 获取班组员工排班明细列表
     * @param queryWrapper
     * @return
     */
    List<ScheduleGroupScheduleDto> getScheduleByGroup(@Param(Constants.WRAPPER) QueryWrapper<ScheduleGroupScheduleDto> queryWrapper);

}